﻿namespace Joy.Erp.BasicArchives.ItemMasters
{
    public class BomMasterConsts
    {
        /// <summary>
        /// 编号字段是否必填
        /// </summary>
        public static bool CodeRequired { get; set; } = true;

        /// <summary>
        /// 版本号字段长度
        /// </summary>
        public static int VersionMaxLength { get; set; } = 500;

        /// <summary>
        /// 料品编号字段是否必填
        /// </summary>
        public static bool ItemCodeRequired { get; set; } = true;

        /// <summary>
        /// 料品编号字段长度
        /// </summary>
        public static int ItemCodeMaxLength { get; set; } = 50;

        /// <summary>
        /// 料品名称字段长度
        /// </summary>
        public static int ItemNameMaxLength { get; set; } = 200;

        /// <summary>
        /// 规格型号字段长度
        /// </summary>
        public static int ItemSpecMaxLength { get; set; } = 200;

        /// <summary>
        /// 用量字段数据库类型
        /// </summary>
        public static string UseCountColumnType { get; set; } = "decimal(18,6)";

        /// <summary>
        /// 母件用量字段数据库类型
        /// </summary>
        public static string ParentCountColumnType { get; set; } = "decimal(18,6)";
    }
}
